# xiangmu/main.py（修改后）
#!/usr/bin/python3
# -*- coding.utf-8 -*-
from student import app01
from score import app02
from emp import app03
import uvicorn


from fastapi import FastAPI

app = FastAPI(
    title="沃林学生管理系统",
    description="对沃林所有的学员，基本信息，成绩，就业，进行管理",
    version="v0.0.1",
    contact={
        "name":"徐怀周",
        "email":"28933478961@qq.com"
    }
)

app.include_router(app01, prefix="/day01", tags=["学生基本信息管理系统"])
app.include_router(app02, prefix="/day02", tags=["学生成绩考核系统"])
app.include_router(app03, prefix="/day03", tags=["学生就业系统"])

@app.get("/", summary="根路径")
async def root():
    return {"message": "欢迎使用沃林学生管理系统", "文档地址": "/docs"}
if __name__ == '__main__':
    uvicorn.run('main:app', host='localhost', port=8010, reload=True)